﻿// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。
//
// 本项目主要遵循 MIT 许可证和 Apache 许可证（版本 2.0）进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。
//
// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动！任何基于本项目二次开发而产生的一切法律纠纷和责任，我们不承担任何责任！

using Admin.NET.Core;
using SqlSugar;
using System.ComponentModel.DataAnnotations;
namespace Admin.NET.Application.Entity;

/// <summary>
/// 供应商管理
/// </summary>
[Tenant("1300000000001")]
[SugarTable("vendor", "供应商管理")]
public class Vendor : EntityBaseDel
{
    /// <summary>
    /// 供应商编码
    /// </summary>
    [Required]
    [SugarColumn(ColumnName = "VendorCode", ColumnDescription = "供应商编码", Length = 32)]
    public virtual string VendorCode { get; set; }
    
    /// <summary>
    /// 供应商名称
    /// </summary>
    [Required]
    [SugarColumn(ColumnName = "VendorName", ColumnDescription = "供应商名称", Length = 32)]
    public virtual string VendorName { get; set; }
    
    /// <summary>
    /// 供应商简称
    /// </summary>
    [SugarColumn(ColumnName = "VendorAbbreviation", ColumnDescription = "供应商简称", Length = 32)]
    public virtual string? VendorAbbreviation { get; set; }
    
    /// <summary>
    /// 客户英文名称
    /// </summary>
    [SugarColumn(ColumnName = "VendorEnglishName", ColumnDescription = "客户英文名称", Length = 32)]
    public virtual string? VendorEnglishName { get; set; }
    
    /// <summary>
    /// 供应商简介
    /// </summary>
    [SugarColumn(ColumnName = "VendorBriefIntroduction", ColumnDescription = "供应商简介", Length = 32)]
    public virtual string? VendorBriefIntroduction { get; set; }
    
    /// <summary>
    /// 供应商地址
    /// </summary>
    [SugarColumn(ColumnName = "VendorAddress", ColumnDescription = "供应商地址", Length = 32)]
    public virtual string? VendorAddress { get; set; }
    
    /// <summary>
    /// 供应商等级
    /// </summary>
    [SugarColumn(ColumnName = "VendorGrade", ColumnDescription = "供应商等级", Length = 32)]
    public virtual string? VendorGrade { get; set; }
    
    /// <summary>
    /// 供应商评分
    /// </summary>
    [SugarColumn(ColumnName = "VendorScore", ColumnDescription = "供应商评分")]
    public virtual int? VendorScore { get; set; }
    
    /// <summary>
    /// 供应商官网
    /// </summary>
    [SugarColumn(ColumnName = "VendorOfficialSite", ColumnDescription = "供应商官网", Length = 32)]
    public virtual string? VendorOfficialSite { get; set; }
    
    /// <summary>
    /// 供应商邮箱地址
    /// </summary>
    [SugarColumn(ColumnName = "VendorEmailAddress", ColumnDescription = "供应商邮箱地址", Length = 32)]
    public virtual string? VendorEmailAddress { get; set; }
    
    /// <summary>
    /// 供应商电话
    /// </summary>
    [SugarColumn(ColumnName = "VendorPhone", ColumnDescription = "供应商电话", Length = 32)]
    public virtual string? VendorPhone { get; set; }
    
    /// <summary>
    /// 联系人1-姓名
    /// </summary>
    [SugarColumn(ColumnName = "ContactOneName", ColumnDescription = "联系人1-姓名", Length = 32)]
    public virtual string? ContactOneName { get; set; }
    
    /// <summary>
    /// 联系人1-电话
    /// </summary>
    [SugarColumn(ColumnName = "ContactOnePhone", ColumnDescription = "联系人1-电话", Length = 32)]
    public virtual string? ContactOnePhone { get; set; }
    
    /// <summary>
    /// 联系人1-邮箱
    /// </summary>
    [SugarColumn(ColumnName = "ContactOneEmail", ColumnDescription = "联系人1-邮箱", Length = 32)]
    public virtual string? ContactOneEmail { get; set; }
    
    /// <summary>
    /// 联系人2-姓名
    /// </summary>
    [SugarColumn(ColumnName = "ContactTwoName", ColumnDescription = "联系人2-姓名", Length = 32)]
    public virtual string? ContactTwoName { get; set; }
    
    /// <summary>
    /// 联系人2-电话
    /// </summary>
    [SugarColumn(ColumnName = "ContactTwoPhone", ColumnDescription = "联系人2-电话", Length = 32)]
    public virtual string? ContactTwoPhone { get; set; }
    
    /// <summary>
    /// 联系人2-邮箱
    /// </summary>
    [SugarColumn(ColumnName = "ContactTwoEmail", ColumnDescription = "联系人2-邮箱", Length = 32)]
    public virtual string? ContactTwoEmail { get; set; }
    
    /// <summary>
    /// 社会信用代码
    /// </summary>
    [SugarColumn(ColumnName = "SocialCreditCode", ColumnDescription = "社会信用代码", Length = 32)]
    public virtual string? SocialCreditCode { get; set; }
    
    /// <summary>
    /// 备注
    /// </summary>
    [SugarColumn(ColumnName = "Remark", ColumnDescription = "备注", Length = 32)]
    public virtual string? Remark { get; set; }
    
    /// <summary>
    /// 是否启用
    /// </summary>
    [Required]
    [SugarColumn(ColumnName = "Enable", ColumnDescription = "是否启用")]
    public virtual bool Enable { get; set; }
    
}
